<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;

/* @var $this yii\web\View */
/* @var $model app\models\Classname */
/* @var $form yii\widgets\ActiveForm */
$data = \app\models\School::find()->all();
$teacher = \app\models\Classname::find()->all();
?>

<div class="classname-form">

    <?php $form = ActiveForm::begin(); ?>

    <?=  $form->field($model, 'yey_id')->dropDownList(ArrayHelper::map($data,'yey_id', 'yey_mingcheng')); ?>

    <?= $form->field($model, 'class_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'zb_teacher')->dropDownList(ArrayHelper::map($teacher,'class_id', 'zb_teacher')) ?>
    <?= $form->field($model, 'fb_teacher')->dropDownList(ArrayHelper::map($teacher,'class_id', 'fb_teacher')) ?>
    <?= $form->field($model, 'sh_teacher')->dropDownList(ArrayHelper::map($teacher,'class_id', 'sh_teacher')) ?>
    <?= $form->field($model, 'stu_num')->textInput(['maxlength' => true]) ?>



    <?= $form->field($model, 'fengcun_time')->textInput() ?>

	<?php if (!Yii::$app->request->isAjax){ ?>
	  	<div class="form-group">
	        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
	    </div>
	<?php } ?>

    <?php ActiveForm::end(); ?>
    
</div>
